package com.wzt.gift.clients;

import com.wzt.gift.domain.LoginUser;
import com.wzt.gift.fallback.LoginUserClientFallbackFactory;
import com.wzt.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author Zenith
 * @Date 2022/10/10 16:31
 * @Version 1.0
 */
@FeignClient(value = "GIFT-AUTH", fallbackFactory = LoginUserClientFallbackFactory.class)
public interface LoginUserClient {
    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

    @GetMapping("/loginUser")
    AjaxResult list();
}
